<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>输入框组</title>
		<link rel="stylesheet" href="../../css/bootstrap.min.css" />
	</head>
	<body>
		<!--
        	input-group            输入框组，只能针对输入框
        	input-group-addon      给输入框前后添加的额外元素
        	input-group-lg         修改输入框组的尺寸
        	input-group-*          添加的额外元素是按钮
        -->
		<div class="container">
			<div class="row">
				<div class="input-group">
					<span class="input-group-addon">@</span>
					<input type="text" class="form-control"/>
				</div>
			</div>
		</div>
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group input-group-lg">
					<span class="input-group-addon">@</span>
					<input type="text" class="form-control"/>
				</div>
			</div>
		</div>
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group input-group-md">
					<span class="input-group-addon">@</span>
					<input type="text" class="form-control"/>
				</div>
			</div>
		</div>
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group input-group-sm">
					<span class="input-group-addon">@</span>
					<input type="text" class="form-control"/>
				</div>
			</div>
		</div>
		<!--<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group input-group-xs">
					<span class="input-group-addon">@</span>
					<input type="text" class="form-control"/>
				</div>
			</div>
		</div>-->
		<!-- 额外内容里放的是checkbox -->
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group">
					<span class="input-group-addon">
						<input type="checkbox" />
					</span>
					<input type="text" class="form-control" />
				</div>
			</div>
		</div>
		<!-- 额外内容里放的是radio -->
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group">
					<span class="input-group-addon">
						<input type="radio" />
					</span>
					<input type="text" class="form-control" />
				</div>
			</div>
		</div>
		<!-- 搜索 -->
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group">
					<input type="text" class="form-control" />
					<span class="input-group-btn">
						<button type="button" class="btn btn-default">搜索</button>
					</span>
				</div>
			</div>
		</div>
		<!--  -->
		<div class="container" style="margin-top: 20px;">
			<div class="row">
				<div class="input-group">
					<div class="input-group-btn">
						<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
							北京市海淀区
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<li><a href="#">海淀</a></li>
							<li><a href="#">海淀</a></li>
							<li><a href="#">海淀</a></li>
							<li><a href="#">海淀</a></li>
							<li><a href="#">海淀</a></li>
							<li><a href="#">海淀</a></li>
						</ul>
					</div>
					<input type="text" class="form-control" />
				</div>
			</div>
		</div>
		<script type="text/javascript" src="../../js/jquery-2.1.0.js" ></script>
		<script type="text/javascript" src="../../js/bootstrap.min.js" ></script>
	</body>
</html>
